package com.kaifamiao.multiton;

public class TestSeason {
    public static void main(String[] args) {

        Season s = Season.SUMMER;
        System.out.println( s );

        Season e = Season.getInstance( 1 );
        System.out.println( e );
        System.out.println( s == e );

        Season a = Season.getInstance( "summer" );
        System.out.println( a );
        System.out.println( a == s );

    }
}
